// JavaScript Document
$(".MainImg").live("mouseover",function(){
	var i=$(".MainImg").index($(this));
	$(".addCart").hide();
	$($(".addCart")[i]).show();
})
$($(".addCart")[0]).show();
$($(".discountContentShow")[0]).css({"top":0})
$($(".zhekou")[0]).show();

$(".discountContent").live("mouseover",function(){
	var i=$(".discountContent").index($(this));
	$(".discountContentShow").css({"top":"20px"})
	$($(".discountContentShow")[i]).css({"top":0})
	$(".zhekou").hide();
	$($(".zhekou")[i]).show();
});

//386px;
if($(".mainRightTop").height()<=390){
	$(".MoreOption a").hide();
}
else{
	$(".MoreOption a").show();
}
var height=$(".mainRightTop").height();
$(".MoreOption a").click(function(){
	var toHeight=$("#resContent").height();
	if(toHeight>=390){
	    $("#resContent").animate({"height":386+"px"})
	}
	else{
		$("#resContent").animate({"height":height+"px"})
	}
});
